const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    // open: true,
    // port: 8082,//端口
    proxy: {
      "/ypAdmi": {
        target: "https://lianghj.top:8888/api/private/v1/",
        changeOrigin: true,
        pathRewrite: {
          "^/ypAdmi": "",
        },
      },
    },
  },
  // chainWebpack,参考第一个脚手架
  configureWebpack: {
    resolve: {
      alias: {
        assets: "@/assets",
        utils: "@/utils",
        api: "@/api",
        view: "@/view",
      },
    },
  },
});
